package cn.bugstack.mcp.server.niuke.domain.model;


import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ArticleFunctionResponse {
    @JsonProperty(required = true, value = "success")
    @JsonPropertyDescription("是否成功")
    private String success;

    @JsonProperty(required = true, value = "msg")
    @JsonPropertyDescription("返回消息")
    private String msg;
    @JsonProperty(required = true, value = "code")
    @JsonPropertyDescription("状态码")
    private Integer code;
    @JsonProperty(required = true, value = "data")
    @JsonPropertyDescription("数据")
    private ArticleData data;


    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class ArticleData{
        @JsonProperty(required = true, value = "result")
        @JsonPropertyDescription("结果")
        private String result;

        @JsonProperty(required = true, value = "redirectUrl")
        @JsonPropertyDescription("redirectUrl")
        private String redirectUrl;
    }

}
